<?
include "../config/constants.php";

if( !$_POST[_xml] || !$_POST[_feed] || !$_POST[_cpid] ) {
    echo "ERROR";
    exit;
}

$RRID = md5( $_POST[_cpid].$_POST[_feed] );

$req = new HttpRequest(ORCHESTRATOR_URL, HttpRequest::METH_POST);

$req->addPostFields(array('XML' => stripslashes($_POST[_xml])));
$req->addPostFields(array('RRID' => $RRID));
echo $req->send()->getBody();
?>

